

#ifndef _CMD_UPDATE_DATA_H_
#define _CMD_UPDATE_DATA_H_

#include "../maindef.h"
#include "commmsg.h"

class CMainCtrl;

class CCmdUpdateData : public CTAsyncCmd
{
public:
    CCmdUpdateData()
    {
    }

    virtual ~CCmdUpdateData()
    {
    }

    virtual int Do(void* pData);
    virtual int OnAnswer(void* pData);
    
    CMainCtrl*  m_pstMain;
    CReqUpdateData m_stReq;
    CAnsUpdateData m_stAns;
    int         m_iReqCmdSeq;
    int64     m_llReqAct;
    //CEnpNetHead m_stHead;
};

class CCmdUpdateSnsDetail : public CTAsyncCmd
{
public:
    enum EN_SNS_DETAIL_TYPE
    {
        SNS_DETAIL_FIGHTING = 1,
        SNS_DETAIL_TITLE = 2,
    };

    CCmdUpdateSnsDetail()
    {
        _uiGid = 0;
        _ucType = 0;
        _iTeamFighting = 0;
        _iRoleFighting = 0;
    }

    virtual ~CCmdUpdateSnsDetail()
    {
    }

    virtual int Do(void* pData);
    virtual int LogicDo(int iRet);

    unsigned int _uiGid;
    unsigned char _ucType;
    int _iTeamFighting;
    int _iRoleFighting;
    CRoleTitle  _stNewTitle;
};

#endif
